home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group02b.txt / 000087_icon-group-sender_Thu Oct 24 07:55:47 2002.msg < prev    next >
Internet Message Format  |  2003-01-02  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id g9OEtNU03886
  4.     for icon-group-addresses; Thu, 24 Oct 2002 07:55:23 -0700 (MST)
  5. Message-Id: <200210241455.g9OEtNU03886@baskerville.CS.Arizona.EDU>
  6. X-Originating-IP: [202.9.164.10]
  7. From: "Trinity Palakkad" <tipl2@hotmail.com>
  8. To: icon-group@cs.arizona.edu
  9. Subject: Doubts in programming
  10. Date: Thu, 24 Oct 2002 09:39:08 +0530
  11. X-OriginalArrivalTime: 24 Oct 2002 04:09:09.0112 (UTC) FILETIME=[1A07F780:01C27B13]
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14.  
  15.  
  16.  
  17. Program 1
  18.  
  19. link wopen
  20.  
  21. procedure main()
  22.     WOpen("size=300,400","pos=100,100")
  23.     WAttrib("bg=blue","fg=white","canvas=hidden")
  24.     WDone()
  25. end
  26.  
  27. After executing the program,no other programs can be executed
  28. due to some linking error.Even the same program cannot be run
  29. for a second time.What change is to be made to the program?
  30.  
  31. Program 2
  32.  
  33. link wopen
  34.  
  35. procedure main()
  36.     WOpen("size=300,400","pos=100,100","label=W1")
  37.     WAttrib("bg=blue","fg=white","canvas=normal")
  38.     WWrite("The window is in the normal state")
  39.     WOpen("size=300,400","pos=200,200","label=W2")
  40.     WAttrib("bg=blue","fg=white","canvas=hidden")
  41.     WDone()
  42. end
  43.  
  44. The program does not produce the desired result.
  45. W2 has to be closed.Instead,W1 is being closed.
  46. What change is to be made to the program?
  47.  
  48.  
  49.  
  50.  
  51. _________________________________________________________________
  52. Choose an Internet access plan right for you -- try MSN! 
  53. http://resourcecenter.msn.com/access/plans/default.asp
  54.  
  55.